<?php
namespace app\common\validate;

use think\Validate;

class FriendValidate extends Validate{

    protected $rule = [
        'name'=>'require',
        'cover'=>'require',
    ];

    protected $message = [
        'name.require'=>'合作伙伴名称必填',
        'cover.require'=>'请上传logo图片'
    ];

    protected $scene = [
        'add' => ['name','cover'],
        'edit' => ['name','cover'],
    ];
}